<#import "../../common/layout.ftl" as l>


<@l.content>

<script>
//    var crud = {
//        del: "/manage/map/server/deleteArray"
//    };
//    var model = [
//        {name : 'ssid',type : 'hidden',text : '服务点编号',allowBlank : true,primaryKey : true},
//        {name : 'geoid',type : 'text',text : '地理点编号',allowBlank : true,primaryKey : false},
//        {name : 'serverType',type : 'select',text : '服务类型',allowBlank : false,primaryKey : false,options : {
//        url : "/manage/map/type/selecttype",
//                displayField : "typetext",
//                valueField : "typevalue"
//    }},
//        {name : 'keyword',type : 'text',text : '关键字',allowBlank : true,primaryKey : false},
//        {name : 'message',type : 'editor',text : '服务内容',allowBlank : false,primaryKey : false},
//    ];



</script>


<form id="pagination-form" method="post" action="/manage/map/server-point/search-point">

    <input type="hidden" name="page" value="${pageInfo.pageNum}">
    <input type="hidden" name="limit" value="${pageInfo.pageSize}">
    <input type="hidden" name="totalPage" value="${pageInfo.pages}">

    <div class="ibox">
        <div class="ibox-title">
            <h3><#if Session['currentMenu']??>${Session['currentMenu'].name}<#else></#if></h3>

            <div class="ibox-tools">

            <#--<a id="edit" href="#">-->
            <#--<i class="fa fa-edit"></i>-->
            <#--编辑-->
            <#--</a>-->

            <#--<a id="delete" href="#">-->
            <#--<i class="fa fa-trash"></i>-->
            <#--删除-->
            <#--</a>-->

            </div>
        </div>
        <div class="ibox-content">
            <div class="input-group search-content">
                <input type="text" name="key" value="<#if key??>${key}<#else></#if>" class="form-control" placeholder="输入名称或关键字"> <span class="input-group-btn">
                <input type="submit" class="btn btn-primary" value="搜索">
            </span></div>
            <div>
                <div class="table-responsive">
                    <table class="table table-striped table-hover dataTables-example" >
                        <thead>
                        <tr>
                            <th>名称</th>
                            <th>位置</th>
                            <th>服务类型</th>
                            <th>服务内容</th>
                            <th>发布者</th>
                            <th>更多</th>
                        </tr>
                        </thead>

                        <tbody>
                            <#list pageInfo.list as report>
                            <tr>
                                <td><#if report.name??>${report.name}<#else></#if></td>
                                <td><#if report.wkt??>${report.wkt}<#else></#if></td>
                                <td><#if report.serverType??>${report.serverType}<#else></#if></td>
                                <td style="width:30%;word-break: break-all"><#if report.message??>${report.message}<#else></#if></td>
                                <td><#if report.companyName??>${report.companyName}<#else></#if></td>
                                <td><#if report.link??><a target="_blank"  onclick="a('${report.link}')">${report.link}</a><#else></#if></td>
                            </tr>
                            </#list>
                        </tbody>
                    </table>
                </div>
                <div class="pagination-content">
                    <div id="pagination" class="pagination">
                    </div>
                </div>
            </div>
        </div>

    </div>
</form>


</@l.content>

<script src="/pagination/js/pagination.js"></script>
<script>
    function a(link) {
        window.open(link);
    }
</script>